<?php
$title='正版查询';
include("./Core/Common.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?=$title?></title>
</head>
<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"/>
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  <!--[if lt IE 9]>
    <script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
    <script src="http://libs.useso.com/js/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <nav class="navbar navbar-fixed-top navbar-default">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">导航按钮</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a  class="navbar-brand" href=""><?=$title?></a>
      </div><!-- /.navbar-header -->
      <div id="navbar" class="navbar-collapse collapse" aria-expanded="false" style="height: 1px;">
        <ul class="nav navbar-nav navbar-right">
              <li>
            <a href="./index.php"> 正版查询</a>
          </li>
          <li><a href="./Get"> 程序下载/更换授权</a></li>   
          <li><a href="./User/Buy.php"> 自助购买</a></li>  
          <li><a href="./Daili"> 授权商登录</a></li>  
            </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container -->
  </nav><!-- /.navbar -->
<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title><?=$title?></title>
    <!--baidu-->
    <meta name="baidu-site-verification" content="4IPJiuihDj" />
    <!-- Bootstrap -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<script type="text/javascript">
	  function getValue(obj,str){
	  var input=window.document.getElementById(obj);
	  input.value=str;
	  }
</script>
<script>
function checkURL()
{
	var url;
	url = document.auth.url.value;

	if (url.indexOf(" ")>=0){
		url = url.replace(/ /g,"");
		document.auth.url.value = url;
	}
	if (url.toLowerCase().indexOf("http://")==0){
		url = url.slice(7);
		document.auth.url.value = url;
	}
	if (url.toLowerCase().indexOf("https://")==0){
		url = url.slice(8);
		document.auth.url.value = url;
	}
	if (url.slice(url.length-1)=="/"){
		url = url.slice(0,url.length-1);
		document.auth.url.value = url;
	}
}
</script>
<div class="container" style="padding-top:50px;">

<?php if(!empty($confs['sygg'])){?>
<footer class="footer text-center">
<a rel="external nofollow" href="<?php echo $confs['syurl']?>" target="_blank"><img width="50%" height="80" src="图片地址"></a>
</footer>
<?php } ?>

<br>
	
<!--<div class="container"><hr>
<h5 class="form-signin-heading"></h5>-->


<?php if(empty($confs['gdgg'])){?>
<!--div class="list-group-item reed"><marquee scrollamount="8" direction="left" align="Middle" style="font-weight: bold;line-height: 20px;font-size: 20px;color: #FF0000;" onmouseover="stop();" onmouseout="start();"> <img border="0" width="32" src="http://i1.buimg.com/1949/17b5756df327b191.png">当前开放自助授权(原价120 现在授权38(4月10号恢复原价)</marquee></div-->
<center></br>
<?php } ?>

<form action="?" method="get" name="auth">
<input type="text" class="form-control" name="url" onkeyup="checkURL();" placeholder="请输入需要查询的域名" required><br>
<button type="submit" class="btn btn-primary btn-block">点击查询</button><hr>
<?php
if($url=addslashes($_GET['url'])) {
	$is=$DB->query("SELECT * FROM `pay_check` WHERE `url`='{$url}' limit 1")->fetch();
	if($is['status']==1) {
		echo '<div class="alert alert-success"><b>您所查询的网址：<font color="#FF00FF">'.$url.'</b></font><br></br><b>查询结果：<font color="#0000FF">正版程序</b></font></div>';
	}elseif(!$is){
		echo '<div class="alert alert-danger"><b>您所查询的网址：<font color="#FF00FF">'.$url.'</b></font><br></br><b>查询结果：<font color="#FF0000">未授权</b></font></div>';
	}elseif($is['status']==0){
		echo '<div class="alert alert-danger"><b>您所查询的网址：<font color="#FF00FF">'.$url.'</b></font><br></br><b>查询结果：<font color="#FF0000">授权已被禁封</b></font></div>';
	}else{
		echo '<div class="alert alert-danger"><b>您所查询的网址：<font color="#FF00FF">'.$url.'</b></font><br></br><b>查询结果：<font color="#FF0000">非正版授权</b></font></div>';
	}
}
$DB->close();
?>
<p style="text-align:center"><br>&copy; Powered by <a href="http://wpa.qq.com/msgrd?v=3&uin=2645147933&site=qq&menu=yes">小白杨</a></p></div>
</div>
</div>
</center>
<?php if(!empty($confs['yxjgg'])){
header("Content-type:text/html;charset=utf-8");?>
<script src="http://cdn.hnc1.cn/assets/js/yxjgg.js"></script>
<style>
#right_bottom{width:250px;height:230px;position:fixed;bottom:0;right:0;}
#right_bottom img{width:100%;height:100%;border-radius:5px;}
#right_bottom #fuchuanga{ position: absolute;right: 0px;top: 0; background: rgba(0, 0, 0, 0.48); color: #FFF;font-size: 20px;padding: 10px 16px;text-decoration: none;border-radius: 4px;cursor: pointer;}
#right_bottom span{position: absolute;left: 10px;top: 10;font-size:13px;}
</style>
<div id="right_bottom">
<a rel="nofollow" href="<?php echo $confs['yxjurl']?>" target="_blank"><img src="<?php echo $confs['yxjgg']?>" width="250" height="230" title="" align="" alt=""></a> <a id="fuchuanga" href="javaScript:void(0)">关闭</a> 
</div>
<script>
	$("#right_bottom a").on('click',function(){
		$("#right_bottom").remove();
	});
	var time = 60;
	var closeAd = setInterval(function(){
		if(time==0){
			$("#right_bottom").remove();
			clearInterval(closeAd);
		}
		$("#right_bottom span").html(time + " 秒后自动关闭");
		time--;
	},1000)
</script>";
<?php } ?>
</body>
</html>